<template>
  <div>
    <button @click="btnClick">调用axios</button>
  </div>
</template>
<script>
import { homeCategoryHead } from '@/api/index.js'
export default {
  setup () {
    async function btnClick () {
      const res = await homeCategoryHead()
      console.log(res)
    }
    return { btnClick }
  }
}
</script>
<style lang="less"></style>
